package com.lzh.persevere.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.persevere.model.entity.Comment;
import com.lzh.persevere.model.qo.comment.CommentPageQO;
import com.lzh.persevere.model.qo.comment.ExpandSubCommentQO;
import com.lzh.persevere.model.ro.comment.SendCommentRO;
import com.lzh.persevere.model.vo.comment.CommentVO;

import java.util.Map;


/**
 * 评论表服务接口
 *
 * @author luzhiheng
 * @since 2025-07-07
 */
public interface CommentService extends IService<Comment> {

    /**
     * 分页查询
     *
     * @param qo 查询参数
     * @return Map<String, Object>
     */
    Map<String, Object> pageList(CommentPageQO qo);

    /**
     * 发送评论
     *
     * @param ro 评论参数
     * @return Boolean
     */
    CommentVO sendComment(SendCommentRO ro);

    /**
     * 展开更多子评论
     *
     * @param qo 展开子评论参数
     * @return Map<String, Object>
     */
    Map<String, Object> expandMoreSubComment(ExpandSubCommentQO qo);
}

